<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>解析器记号（token）列表</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="types.comparisons.html">« PHP 类型比较表</a></li>
      <li style="float: right;"><a href="userlandnaming.html">用户空间命名指南 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="appendices.html">附录</a></li>
    <li>解析器记号（token）列表</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="tokens" class="appendix">
 <h1>解析器记号（token）列表</h1>

 <p class="para">
  PHP 语言的各个部分在内部使用记号表示。包含无效序列的代码片段可能会导致错误。例如 <code class="literal">Parse error: 
  syntax error, unexpected token &quot;==&quot;, expecting &quot;(&quot; in script.php on line
  10.&quot;</code>。其中记号 <code class="code">==</code> 在内部由 <strong><code>T_IS_EQUAL</code></strong>
  表示。
 </p>

 <p class="para">
  下表列出的所有记号。也可以用作 PHP 常量。
 </p>

 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <strong>T_* 常量用法</strong><br />
  <p class="para">
   T_* 常量是根据 PHP 底层解析器数据结构自动生成的。这意味着记号的具体值可能会在不同的 PHP
   版本之间发生变更。这也意味着代码不应直接从 PHP X.Y.Z 版本中获取原始 T_* 值，从而提供跨越多个版本的兼容性。
  </p>

  <p class="para">
   为了在多个 PHP 版本中使用 T_* 常量，用户可以对 PHP 版本和 T_* 值使用适当的策略（使用类似
   <code class="literal">10000</code> 的大数），来定义未定义的常量。
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;在&nbsp;PHP&nbsp;7.4.0&nbsp;之前，未定义&nbsp;T_FN。<br /></span><span style="color: #0000BB">defined</span><span style="color: #007700">(</span><span style="color: #DD0000">'T_FN'</span><span style="color: #007700">)&nbsp;||&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'T_FN'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">10001</span><span style="color: #007700">);</span>
</span>
</code></div>
   </div>

  </p>
 </p></blockquote>

 <table class="doctable table">
  <caption><strong>记号</strong></caption>
  
   <thead>
    <tr>
     <th>记号</th>
     <th>语法</th>
     <th>参考</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><strong><code>T_ABSTRACT</code></strong></td>
     <td>abstract</td>
     <td><a href="language.oop5.abstract.html" class="xref">抽象类</a></td>
    </tr>

    <tr>
     <td><strong><code>T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG</code></strong></td>
     <td>&amp;</td>
     <td><a href="language.types.declarations.html" class="xref">类型声明</a>（自 PHP 8.1.0 起有效）</td>
    </tr>

    <tr>
     <td><strong><code>T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG</code></strong></td>
     <td>&amp;</td>
     <td><a href="language.types.declarations.html" class="xref">类型声明</a>（自 PHP 8.1.0 起有效）</td>
    </tr>

    <tr>
     <td><strong><code>T_AND_EQUAL</code></strong></td>
     <td>&amp;=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ARRAY</code></strong></td>
     <td>array()</td>
     <td><span class="function"><a href="function.array.html" class="function">array()</a></span>，<a href="language.types.array.html#language.types.array.syntax" class="link">数组语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ARRAY_CAST</code></strong></td>
     <td>(array)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_AS</code></strong></td>
     <td>as</td>
     <td><a href="control-structures.foreach.html" class="link">foreach</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ATTRIBUTE</code></strong></td>
     <td>#[</td>
     <td><a href="language.attributes.html" class="link">属性</a>（自 PHP 8.0.0 起有效）</td>
    </tr>

    <tr>
     <td><strong><code>T_BAD_CHARACTER</code></strong></td>
     <td class="empty">&nbsp;</td>
     <td>
      除了 \t（0x09）、\n（0x0a）、\r（0x0d）之外所有低于 ASCII 32 的内容（自 PHP 7.4.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_BOOLEAN_AND</code></strong></td>
     <td>&amp;&amp;</td>
     <td><a href="language.operators.logical.html" class="link">逻辑运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_BOOLEAN_OR</code></strong></td>
     <td>||</td>
     <td><a href="language.operators.logical.html" class="link">逻辑运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_BOOL_CAST</code></strong></td>
     <td>(bool) 或 (boolean)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_BREAK</code></strong></td>
     <td>break</td>
     <td><a href="control-structures.break.html" class="link">break</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CALLABLE</code></strong></td>
     <td>callable</td>
     <td><a href="language.types.callable.html" class="link">callable</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CASE</code></strong></td>
     <td>case</td>
     <td><a href="control-structures.switch.html" class="link">switch</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CATCH</code></strong></td>
     <td>catch</td>
     <td><a href="language.exceptions.html" class="xref">异常</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CLASS</code></strong></td>
     <td>class</td>
     <td><a href="language.oop5.html" class="link">类和对象</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CLASS_C</code></strong></td>
     <td>__CLASS__</td>
     <td>
      <a href="language.constants.predefined.html" class="link">魔术常量</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_CLONE</code></strong></td>
     <td>clone</td>
     <td>
      <a href="language.oop5.html" class="link">类和对象</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_CLOSE_TAG</code></strong></td>
     <td>?&gt; 或 %&gt;</td>
     <td><a href="language.basic-syntax.phpmode.html" class="link">从 HTML 中转义</a></td>
    </tr>

    <tr>
     <td><strong><code>T_COALESCE</code></strong></td>
     <td>??</td>
     <td>
      <a href="language.operators.comparison.html#language.operators.comparison.coalesce" class="link">比较运算符</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_COALESCE_EQUAL</code></strong></td>
     <td>??=</td>
     <td>
      <a href="language.operators.assignment.html" class="link">赋值运算符</a>
      （自 PHP 7.4.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_COMMENT</code></strong></td>
     <td>// 或 # 以及 /* */</td>
     <td><a href="language.basic-syntax.comments.html" class="link">注释</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CONCAT_EQUAL</code></strong></td>
     <td>.=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CONST</code></strong></td>
     <td>const</td>
     <td><a href="language.constants.html" class="link">类常量</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CONSTANT_ENCAPSED_STRING</code></strong></td>
     <td>&quot;foo&quot; 或 &#039;bar&#039;</td>
     <td><a href="language.types.string.html#language.types.string.syntax" class="link">字符串语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CONTINUE</code></strong></td>
     <td>continue</td>
     <td><a href="control-structures.continue.html" class="link">continue</a></td>
    </tr>

    <tr>
     <td><strong><code>T_CURLY_OPEN</code></strong></td>
     <td>{$</td>
     <td><a href="language.types.string.html#language.types.string.parsing.complex" class="link">复杂变量解析语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DEC</code></strong></td>
     <td>--</td>
     <td><a href="language.operators.increment.html" class="link">递增/递减运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DECLARE</code></strong></td>
     <td>declare</td>
     <td><a href="control-structures.declare.html" class="link">declare</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DEFAULT</code></strong></td>
     <td>default</td>
     <td><a href="control-structures.switch.html" class="link">switch</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DIR</code></strong></td>
     <td>__DIR__</td>
     <td><a href="language.constants.predefined.html" class="link">逻辑常量</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DIV_EQUAL</code></strong></td>
     <td>/=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DNUMBER</code></strong></td>
     <td>0.12 等</td>
     <td><a href="language.types.float.html" class="link">浮点数</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DO</code></strong></td>
     <td>do</td>
     <td><a href="control-structures.do.while.html" class="link">do..while</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DOC_COMMENT</code></strong></td>
     <td>/** */</td>
     <td>
      <a href="language.basic-syntax.comments.html" class="link">PHPDoc 风格注释</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_DOLLAR_OPEN_CURLY_BRACES</code></strong></td>
     <td>${</td>
     <td><a href="language.types.string.html#language.types.string.parsing.complex" class="link">复杂变量解析语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DOUBLE_ARROW</code></strong></td>
     <td>=&gt;</td>
     <td><a href="language.types.array.html#language.types.array.syntax" class="link">数组语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DOUBLE_CAST</code></strong></td>
     <td>(real)、(double) 或 (float)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_DOUBLE_COLON</code></strong></td>
     <td>::</td>
     <td>见下面的 <strong><code>T_PAAMAYIM_NEKUDOTAYIM</code></strong></td>
    </tr>

    <tr>
     <td><strong><code>T_ECHO</code></strong></td>
     <td>echo</td>
     <td><span class="function"><a href="function.echo.html" class="function">echo</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_ELLIPSIS</code></strong></td>
     <td>...</td>
     <td>
      <a href="functions.arguments.html#functions.variable-arg-list" class="link">函数参数</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_ELSE</code></strong></td>
     <td>else</td>
     <td><a href="control-structures.else.html" class="link">else</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ELSEIF</code></strong></td>
     <td>elseif</td>
     <td><a href="control-structures.elseif.html" class="link">elseif</a></td>
    </tr>

    <tr>
     <td><strong><code>T_EMPTY</code></strong></td>
     <td>empty</td>
     <td><span class="function"><a href="function.empty.html" class="function">empty()</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_ENCAPSED_AND_WHITESPACE</code></strong></td>
     <td>&quot; $a&quot;</td>
     <td><a href="language.types.string.html#language.types.string.parsing" class="link">带变量字符串的常量部分</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENDDECLARE</code></strong></td>
     <td>enddeclare</td>
     <td><a href="control-structures.declare.html" class="link">declare</a>、<a href="control-structures.alternative-syntax.html" class="link">替代语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENDFOR</code></strong></td>
     <td>endfor</td>
     <td><a href="control-structures.for.html" class="link">for</a>、<a href="control-structures.alternative-syntax.html" class="link">替代语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENDFOREACH</code></strong></td>
     <td>endforeach</td>
     <td><a href="control-structures.foreach.html" class="link">foreach</a>、<a href="control-structures.alternative-syntax.html" class="link">替代语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENDIF</code></strong></td>
     <td>endif</td>
     <td><a href="control-structures.if.html" class="link">if</a>、<a href="control-structures.alternative-syntax.html" class="link">替代语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENDSWITCH</code></strong></td>
     <td>endswitch</td>
     <td><a href="control-structures.switch.html" class="link">switch</a>、<a href="control-structures.alternative-syntax.html" class="link">替代语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENDWHILE</code></strong></td>
     <td>endwhile</td>
     <td><a href="control-structures.while.html" class="link">while</a>、<a href="control-structures.alternative-syntax.html" class="link">替代语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ENUM</code></strong></td>
     <td>enum</td>
     <td><a href="language.types.enumerations.html" class="link">枚举</a>（自 PHP 8.1.0 起有效）</td>
    </tr>

    <tr>
     <td><strong><code>T_END_HEREDOC</code></strong></td>
     <td class="empty">&nbsp;</td>
     <td><a href="language.types.string.html#language.types.string.syntax.heredoc" class="link">heredoc
     语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_EVAL</code></strong></td>
     <td>eval()</td>
     <td><span class="function"><a href="function.eval.html" class="function">eval()</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_EXIT</code></strong></td>
     <td>exit 或 die</td>
     <td><span class="function"><a href="function.exit.html" class="function">exit()</a></span>、<span class="function"><a href="function.die.html" class="function">die()</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_EXTENDS</code></strong></td>
     <td>extends</td>
     <td><a href="language.oop5.basic.html#language.oop5.basic.extends" class="link">extends</a>、<a href="language.oop5.html" class="link">类和对象</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FILE</code></strong></td>
     <td>__FILE__</td>
     <td><a href="language.constants.predefined.html" class="link">魔法常量</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FINAL</code></strong></td>
     <td>final</td>
     <td><a href="language.oop5.final.html" class="xref">Final 关键字</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FINALLY</code></strong></td>
     <td>finally</td>
     <td><a href="language.exceptions.html" class="xref">异常</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FN</code></strong></td>
     <td>fn</td>
     <td>
      <a href="functions.arrow.html" class="link">箭头函数</a>
      （自 PHP 7.4.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_FOR</code></strong></td>
     <td>for</td>
     <td><a href="control-structures.for.html" class="link">for</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FOREACH</code></strong></td>
     <td>foreach</td>
     <td><a href="control-structures.foreach.html" class="link">foreach</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FUNCTION</code></strong></td>
     <td>function</td>
     <td><a href="language.functions.html" class="link">函数</a></td>
    </tr>

    <tr>
     <td><strong><code>T_FUNC_C</code></strong></td>
     <td>__FUNCTION__</td>
     <td>
      <a href="language.constants.predefined.html" class="link">魔法常量</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_GLOBAL</code></strong></td>
     <td>global</td>
     <td><a href="language.variables.scope.html" class="link">变量作用域</a></td>
    </tr>

    <tr>
     <td><strong><code>T_GOTO</code></strong></td>
     <td>goto</td>
     <td><a href="control-structures.goto.html" class="link">goto</a></td>
    </tr>

    <tr>
     <td><strong><code>T_HALT_COMPILER</code></strong></td>
     <td>__halt_compiler()</td>
     <td><a href="function.halt-compiler.html" class="xref">__halt_compiler</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IF</code></strong></td>
     <td>if</td>
     <td><a href="control-structures.if.html" class="link">if</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IMPLEMENTS</code></strong></td>
     <td>implements</td>
     <td><a href="language.oop5.interfaces.html" class="xref">对象接口</a></td>
    </tr>

    <tr>
     <td><strong><code>T_INC</code></strong></td>
     <td>++</td>
     <td><a href="language.operators.increment.html" class="link">递增/递减运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_INCLUDE</code></strong></td>
     <td>include()</td>
     <td><span class="function"><a href="function.include.html" class="function">include</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_INCLUDE_ONCE</code></strong></td>
     <td>include_once()</td>
     <td><span class="function"><a href="function.include-once.html" class="function">include_once</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_INLINE_HTML</code></strong></td>
     <td class="empty">&nbsp;</td>
     <td><a href="language.basic-syntax.phpmode.html" class="link">text outside PHP</a></td>
    </tr>

    <tr>
     <td><strong><code>T_INSTANCEOF</code></strong></td>
     <td>instanceof</td>
     <td>
      <a href="language.operators.type.html" class="link">类型运算符</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_INSTEADOF</code></strong></td>
     <td>insteadof</td>
     <td><a href="language.oop5.traits.html" class="xref">Trait</a></td>
    </tr>

    <tr>
     <td><strong><code>T_INTERFACE</code></strong></td>
     <td>interface</td>
     <td><a href="language.oop5.interfaces.html" class="xref">对象接口</a></td>
    </tr>

    <tr>
     <td><strong><code>T_INT_CAST</code></strong></td>
     <td>(int) 或 (integer)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_ISSET</code></strong></td>
     <td>isset()</td>
     <td><span class="function"><a href="function.isset.html" class="function">isset()</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_IS_EQUAL</code></strong></td>
     <td>==</td>
     <td><a href="language.operators.comparison.html" class="link">比较运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IS_GREATER_OR_EQUAL</code></strong></td>
     <td>&gt;=</td>
     <td><a href="language.operators.comparison.html" class="link">比较运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IS_IDENTICAL</code></strong></td>
     <td>===</td>
     <td><a href="language.operators.comparison.html" class="link">比较运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IS_NOT_EQUAL</code></strong></td>
     <td>!= or &lt;&gt;</td>
     <td><a href="language.operators.comparison.html" class="link">比较运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IS_NOT_IDENTICAL</code></strong></td>
     <td>!==</td>
     <td><a href="language.operators.comparison.html" class="link">比较运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_IS_SMALLER_OR_EQUAL</code></strong></td>
     <td>&lt;=</td>
     <td><a href="language.operators.comparison.html" class="link">比较运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_LINE</code></strong></td>
     <td>__LINE__</td>
     <td><a href="language.constants.predefined.html" class="link">魔术常量</a></td>
    </tr>

    <tr>
     <td><strong><code>T_LIST</code></strong></td>
     <td>list()</td>
     <td><span class="function"><a href="function.list.html" class="function">list()</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_LNUMBER</code></strong></td>
     <td>123、012、0x1ac 等</td>
     <td><a href="language.types.integer.html" class="link">整型</a></td>
    </tr>

    <tr>
     <td><strong><code>T_LOGICAL_AND</code></strong></td>
     <td>and</td>
     <td><a href="language.operators.logical.html" class="link">逻辑运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_LOGICAL_OR</code></strong></td>
     <td>or</td>
     <td><a href="language.operators.logical.html" class="link">逻辑运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_LOGICAL_XOR</code></strong></td>
     <td>xor</td>
     <td><a href="language.operators.logical.html" class="link">逻辑运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_MATCH</code></strong></td>
     <td>match</td>
     <td>
      <a href="control-structures.match.html" class="link">match</a>（自 PHP 8.0.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_METHOD_C</code></strong></td>
     <td>__METHOD__</td>
     <td>
      <a href="language.constants.predefined.html" class="link">魔术常量</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_MINUS_EQUAL</code></strong></td>
     <td>-=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_MOD_EQUAL</code></strong></td>
     <td>%=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_MUL_EQUAL</code></strong></td>
     <td>*=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_NAMESPACE</code></strong></td>
     <td>namespace</td>
     <td>
      <a href="language.namespaces.html" class="link">命名空间</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_NAME_FULLY_QUALIFIED</code></strong></td>
     <td>\App\Namespace</td>
     <td>
      <a href="language.namespaces.html" class="link">命名空间</a>（自 PHP 8.0.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_NAME_QUALIFIED</code></strong></td>
     <td>App\Namespace</td>
     <td>
      <a href="language.namespaces.html" class="link">命名空间</a>（自 PHP 8.0.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_NAME_RELATIVE</code></strong></td>
     <td>namespace\Namespace</td>
     <td>
      <a href="language.namespaces.html" class="link">命名空间</a>（自 PHP 8.0.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_NEW</code></strong></td>
     <td>new</td>
     <td><a href="language.oop5.html" class="link">类和对象</a></td>
    </tr>

    <tr>
     <td><strong><code>T_NS_C</code></strong></td>
     <td>__NAMESPACE__</td>
     <td>
      <a href="language.namespaces.html" class="link">命名空间</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_NS_SEPARATOR</code></strong></td>
     <td>\</td>
     <td>
      <a href="language.namespaces.html" class="link">命名空间</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_NUM_STRING</code></strong></td>
     <td>&quot;$a[0]&quot;</td>
     <td><a href="language.types.string.html#language.types.string.parsing" class="link">字符串内的数组数字索引</a></td>
    </tr>

    <tr>
     <td><strong><code>T_OBJECT_CAST</code></strong></td>
     <td>(object)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_OBJECT_OPERATOR</code></strong></td>
     <td>-&gt;</td>
     <td><a href="language.oop5.html" class="link">类和对象</a></td>
    </tr>

    <tr>
     <td><strong><code>T_NULLSAFE_OBJECT_OPERATOR</code></strong></td>
     <td>?-&gt;</td>
     <td><a href="language.oop5.html" class="link">类和对象</a></td>
    </tr>

    <tr>
     <td><strong><code>T_OPEN_TAG</code></strong></td>
     <td>&lt;?php, &lt;? 或 &lt;%</td>
     <td><a href="language.basic-syntax.phpmode.html" class="link">从 HTML 中转义</a></td>
    </tr>

    <tr>
     <td><strong><code>T_OPEN_TAG_WITH_ECHO</code></strong></td>
     <td>&lt;?= 或 &lt;%=</td>
     <td><a href="language.basic-syntax.phpmode.html" class="link">从 HTML 中转义</a></td>
    </tr>

    <tr>
     <td><strong><code>T_OR_EQUAL</code></strong></td>
     <td>|=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_PAAMAYIM_NEKUDOTAYIM</code></strong></td>
     <td>::</td>
     <td><a href="language.oop5.paamayim-nekudotayim.html" class="link">::</a>。也定义为
      <strong><code>T_DOUBLE_COLON</code></strong>。</td>
    </tr>

    <tr>
     <td><strong><code>T_PLUS_EQUAL</code></strong></td>
     <td>+=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_POW</code></strong></td>
     <td>**</td>
     <td>
      <a href="language.operators.arithmetic.html" class="link">算术运算符</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_POW_EQUAL</code></strong></td>
     <td>**=</td>
     <td>
      <a href="language.operators.assignment.html" class="link">赋值运算符</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_PRINT</code></strong></td>
     <td>print()</td>
     <td><span class="function"><a href="function.print.html" class="function">print</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_PRIVATE</code></strong></td>
     <td>private</td>
     <td>
      <a href="language.oop5.html" class="link">类和对象</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_PROTECTED</code></strong></td>
     <td>protected</td>
     <td>
      <a href="language.oop5.html" class="link">类和对象</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_PUBLIC</code></strong></td>
     <td>public</td>
     <td>
      <a href="language.oop5.html" class="link">类和对象</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_READONLY</code></strong></td>
     <td>readonly</td>
     <td>
      <a href="language.oop5.html" class="link">类和对象</a>（自 PHP 8.1.0 起有效）
     </td>
    </tr>

    <tr>
     <td><strong><code>T_REQUIRE</code></strong></td>
     <td>require()</td>
     <td><span class="function"><a href="function.require.html" class="function">require</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_REQUIRE_ONCE</code></strong></td>
     <td>require_once()</td>
     <td><span class="function"><a href="function.require-once.html" class="function">require_once</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_RETURN</code></strong></td>
     <td>return</td>
     <td><a href="functions.returning-values.html" class="link">返回值</a></td>
    </tr>

    <tr>
     <td><strong><code>T_SL</code></strong></td>
     <td>&lt;&lt;</td>
     <td><a href="language.operators.bitwise.html" class="link">位运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_SL_EQUAL</code></strong></td>
     <td>&lt;&lt;=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_SPACESHIP</code></strong></td>
     <td>&lt;=&gt;</td>
     <td>
      <a href="language.operators.comparison.html" class="link">比较运算符</a>
     </td>
    </tr>

    <tr>
     <td><strong><code>T_SR</code></strong></td>
     <td>&gt;&gt;</td>
     <td><a href="language.operators.bitwise.html" class="link">位运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_SR_EQUAL</code></strong></td>
     <td>&gt;&gt;=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_START_HEREDOC</code></strong></td>
     <td>&lt;&lt;&lt;</td>
     <td><a href="language.types.string.html#language.types.string.syntax.heredoc" class="link">heredoc
     语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_STATIC</code></strong></td>
     <td>static</td>
     <td><a href="language.variables.scope.html" class="link">变量作用域</a></td>
    </tr>

    <tr>
     <td><strong><code>T_STRING</code></strong></td>
     <td>parent、self 等</td>
     <td>
      标识符，比如像 <code class="literal">parent</code> 和
      <code class="literal">self</code>、函数名，类名等等的关键字。参阅
      <strong><code>T_CONSTANT_ENCAPSED_STRING</code></strong>.
     </td>
    </tr>

    <tr>
     <td><strong><code>T_STRING_CAST</code></strong></td>
     <td>(string)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_STRING_VARNAME</code></strong></td>
     <td>&quot;${a</td>
     <td><a href="language.types.string.html#language.types.string.parsing.complex" class="link">复杂变量解析语法</a></td>
    </tr>

    <tr>
     <td><strong><code>T_SWITCH</code></strong></td>
     <td>switch</td>
     <td><a href="control-structures.switch.html" class="link">switch</a></td>
    </tr>

    <tr>
     <td><strong><code>T_THROW</code></strong></td>
     <td>throw</td>
     <td><a href="language.exceptions.html" class="xref">异常</a></td>
    </tr>

    <tr>
     <td><strong><code>T_TRAIT</code></strong></td>
     <td>trait</td>
     <td><a href="language.oop5.traits.html" class="xref">Trait</a></td>
    </tr>

    <tr>
     <td><strong><code>T_TRAIT_C</code></strong></td>
     <td>__TRAIT__</td>
     <td><a href="" class="link">__TRAIT__</a></td>
    </tr>

    <tr>
     <td><strong><code>T_TRY</code></strong></td>
     <td>try</td>
     <td><a href="language.exceptions.html" class="xref">异常</a></td>
    </tr>

    <tr>
     <td><strong><code>T_UNSET</code></strong></td>
     <td>unset()</td>
     <td><span class="function"><a href="function.unset.html" class="function">unset()</a></span></td>
    </tr>

    <tr>
     <td><strong><code>T_UNSET_CAST</code></strong></td>
     <td>(unset)</td>
     <td><a href="language.types.type-juggling.html#language.types.typecasting" class="link">类型转换</a></td>
    </tr>

    <tr>
     <td><strong><code>T_USE</code></strong></td>
     <td>use</td>
     <td><a href="language.namespaces.html" class="link">命名空间</a></td>
    </tr>

    <tr>
     <td><strong><code>T_VAR</code></strong></td>
     <td>var</td>
     <td><a href="language.oop5.html" class="link">类和对象</a></td>
    </tr>

    <tr>
     <td><strong><code>T_VARIABLE</code></strong></td>
     <td>$foo</td>
     <td><a href="language.variables.html" class="link">变量</a></td>
    </tr>

    <tr>
     <td><strong><code>T_WHILE</code></strong></td>
     <td>while</td>
     <td><a href="control-structures.while.html" class="link">while</a>、<a href="control-structures.do.while.html" class="link">do..while</a></td>
    </tr>

    <tr>
     <td><strong><code>T_WHITESPACE</code></strong></td>
     <td>\t \r\n</td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><strong><code>T_XOR_EQUAL</code></strong></td>
     <td>^=</td>
     <td><a href="language.operators.assignment.html" class="link">赋值运算符</a></td>
    </tr>

    <tr>
     <td><strong><code>T_YIELD</code></strong></td>
     <td>yield</td>
     <td><a href="language.generators.syntax.html#control-structures.yield" class="link">生成器</a></td>
    </tr>

    <tr>
     <td><strong><code>T_YIELD_FROM</code></strong></td>
     <td>yield from</td>
     <td><a href="language.generators.syntax.html#control-structures.yield.from" class="link">生成器</a></td>
    </tr>
    
   </tbody>
  
 </table>

 <p class="para">
  参见 <span class="function"><a href="function.token-name.html" class="function">token_name()</a></span>。
 </p>
</div>
</div></div></body></html>